<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond_Benc
 * @package 		Phpfox
 * @version 		$Id: controller.html.php 64 2009-01-19 15:05:54Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
{*
{if $aOrganization.view_id == '1'}
	<div class="message js_moderation_off" id="js_approve_message">
		{phrase var='organization.this_organization_is_pending_an_admins_approval_before_it_can_be_displayed_publicly'}
	</div>
{/if}
{if !Phpfox::isMobile() && (Phpfox::getUserParam('organization.can_moderate_organization') || $aOrganization.is_admin)}
	<div class="item_bar">
		<div class="item_bar_action_holder">
			{if $aOrganization.view_id == '1' && Phpfox::getUserParam('pages.can_moderate_pages')}
				<a href="#" class="item_bar_approve item_bar_approve_image" onclick="return false;" style="display:none;" id="js_item_bar_approve_image">
					{img theme='ajax/add.gif'}
				</a>			
				<a href="#" class="item_bar_approve" onclick="$(this).hide(); $('#js_item_bar_approve_image').show(); $.ajaxCall('organization.approve', 'organization_id={$aOrganization.organization_id}'); return false;">
					{phrase var='organization.approve'}
				</a>
			{/if}		
			<a href="#" class="item_bar_action">
				<span>
					{phrase var='organization.actions'}
				</span>
			</a>		
			<ul>
				{template file='organization.block.link'}
			</ul>			
		</div>		
	</div>
{/if}

{if $bCanViewOrganization}
	{if isset($aWidget)}
		<div class="item_view_content">
			{$aWidget.text|parse}
		</div>
	{elseif $sCurrentModule == 'info' && !$iViewCommentId}
		<div class="item_view_content">
			{$aOrganization.text|parse}
		</div>
	{elseif $sCurrentModule == 'pending'}
		{if count($aPendingUsers)}
			{foreach from=$aPendingUsers name=pendingusers item=aPendingUser}
				<div id="js_pages_user_entry_{$aPendingUser.signup_id}" class="row1{if $phpfox.iteration.pendingusers == 1} row_first{/if}">
					<div class="go_left" style="width:50px;">
						{img user=$aPendingUser suffix='_50_square' max_width='50' max_height='50'}
						<a href="#{$aPendingUser.signup_id}" class="moderate_link" rel="pages">{phrase var='organization.moderate'}</a>
					</div>
					<div style="margin-left:55px">
						<span class="row_title_link">{$aPendingUser|user|shorten:50:'...'}</span>
					</div>
					<div class="clear"></div>
				</div>
			{/foreach}
			{moderation}
		{else}
		{/if}
	{else}
		{if $bHasPermToViewOrganizationFeed}
			
		{else}
			{phrase var='organization.unable_to_view_this_section_due_to_privacy_settings'}
		{/if}
	{/if}
{else}
	<div class="message">
		{if isset($aOrganization.is_invited) && $aOrganization.is_invited}	
			{phrase var='organization.you_have_been_invited_to_join_this_community'}	
		{else}
			{phrase var='organization.due_to_privacy_settings_this_organization_is_not_visible'}
			{if $aOrganization.organization_type == '1' && $aOrganization.reg_method == '2'}
				{phrase var='organization.this_organization_is_also_invite_only'}
			{/if}
		{/if}
	</div>
{/if}
*}
